package com.example.week8_mybatis_plus.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import org.apache.catalina.LifecycleState;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author jiangbo
 * @since 2022-10-25
 */
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    private String description;

    private String name;

    private Object price;


    @TableField(exist = false)
    private List<Supplier> suppliers;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Object getPrice() {
        return price;
    }

    public void setPrice(Object price) {
        this.price = price;
    }

    public List<Supplier> getSuppliers() {
        return suppliers;
    }

    public void setSuppliers(List<Supplier> suppliers) {
        this.suppliers = suppliers;
    }

    @Override
    public String toString() {
        return "Goods{" +
        "id = " + id +
        ", description = " + description +
        ", name = " + name +
        ", price = " + price +
        "}";
    }
}
